import App from './App'
import message from '@/utils/request/message'
import { API_URL } from '@/utils/request/env'
import api from '@/utils/request/index'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
import basics from './pages/basics/home.vue'
Vue.component('basics',basics)

import components from './pages/component/home.vue'
Vue.component('components',components)

import plugin from './pages/plugin/home.vue'
Vue.component('plugin',plugin)

import cuCustom from './common/colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)

Vue.config.productionTip = false


Vue.prototype.$api = api;
Vue.prototype.$API_URL = API_URL; 
Vue.prototype.$message = message;


// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif